<?php if(!defined('BASEPATH')) exit('No direct script access allowed');

class item_module extends CI_Module{
    
    public $news_model;
            
    function __construct() {
        parent::__construct();
        $this->load->model("news_model");
        $this->news_model = new News_model();
    }
    
    function slide_new_item()
    {
        $_item = $this->news_model->get_new_by_option(array("new_item"=>1), 5);
        
        return $_item;
    }
    
}
?>